package com.foreknow.elm.service;

import com.foreknow.elm.po.DeliveryAddress;

import java.util.List;

public interface DeliveryAddressService {
    /**
     * 根据用户编号查询所属配送地址
     * @param userId
     * @return
     */
    public List<DeliveryAddress> listDeliveryAddressByUserId(String userId) throws Exception;

    /**
     * 根据配送地址编号查询送货地址
     * @param daId
     * @return
     */
    public DeliveryAddress getDeliveryAddressById(Integer daId) throws Exception;

    /**
     * 向送货地址表中添加一条记录
     * @return
     */
    public int saveDeliveryAddress(DeliveryAddress deliveryAddress) throws Exception;

    /**
     * 根据送货地址编号更新送货地址信息
     * @return
     */
    public int updateDeliveryAddress(DeliveryAddress deliveryAddress) throws Exception;

    /**
     * 根据送货地址编号删除一条记录
     * @param daId
     * @return
     */
    public int removeDeliveryAddress(Integer daId) throws Exception;
}
